package my.test.visitor;

/**
 * @Author 许玉康
 * @Date 2019/10/8 9:48
 * 管理阶层
 */
public class Manager extends Employee {
    //业绩
    private String performance;

    public String getPerformance() {
        return performance;
    }

    public void setPerformance(String performance) {
        this.performance = performance;
    }

    @Override
    protected String getOtherInfo() {
        return "业绩: " + this.performance + "\t";
    }

    //部门经理允许访问者访问
    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }
}
